import { repl } from "@nestjs/core";
import { AppModule } from "./app.module";

async function bootstrap() {
    const replServer = await repl(AppModule);

    // 记录repl交互日志
    replServer.setupHistory("./nestjs_repl_history", err => {
        if(err) console.error(err);
    })
}

bootstrap();